import request from '@/utils/request'

/**
 * 登录
 * @param {Object} data 登录表单对象
 * @returns
 */
export const login = data => request({
  method: 'POST',
  url: '/app/v1_0/authorizations',
  data
})

/**
 * 发送手机验证码
 * @param {string} mobile 手机号
 * @returns
 */
export const sendCode = mobile => request({
  method: 'GET',
  url: `/app/v1_0/sms/codes/${mobile}`
})
